package com.faner.fast.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.faner.fast.upms.model.SysUserRoleDO;
import org.apache.ibatis.annotations.Param;

/**
 * @作者 faner
 * @创建时间 2021/2/25 15:25
 */

public interface SysUserRoleMapper extends BaseMapper<SysUserRoleDO> {

    /**
     * 根据用户Id删除该用户的角色关系
     * @param userId 用户ID
     * @return boolean
     */
    Boolean deleteByUserId(@Param("userId") Integer userId);

}
